package com.xiaozhengkeji.blogsuper.base.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.xiaozhengkeji.blogsuper.base.entitys.UserEntity;
import com.xiaozhengkeji.blogsuper.base.mapper.UserEntityMapper;import java.util.List;

@Service
public class UserEntityService {

    @Resource
    private UserEntityMapper userEntityMapper;


    public int deleteByPrimaryKey(Integer id) {
        return userEntityMapper.deleteByPrimaryKey(id);
    }


    public int insert(UserEntity record) {
        return userEntityMapper.insert(record);
    }


    public int insertSelective(UserEntity record) {
        return userEntityMapper.insertSelective(record);
    }


    public UserEntity selectByPrimaryKey(Integer id) {
        return userEntityMapper.selectByPrimaryKey(id);
    }


    public int updateByPrimaryKeySelective(UserEntity record) {
        return userEntityMapper.updateByPrimaryKeySelective(record);
    }


    public int updateByPrimaryKey(UserEntity record) {
        return userEntityMapper.updateByPrimaryKey(record);
    }

    public List<UserEntity> queryByAll(UserEntity userEntity) {
        return userEntityMapper.queryByAll(userEntity);
    }

    public List<UserEntity> queryByEMailBox(String eMailBox) {
        return userEntityMapper.queryByEMailBox(eMailBox);
    }

    public List<UserEntity> queryByEMailBoxAndPermission(String eMailBox, String permission) {
        return userEntityMapper.queryByEMailBoxAndPermission(eMailBox, permission);
    }

    public List<UserEntity> queryByUserName(String userName) {
        return userEntityMapper.queryByUserName(userName);
    }

    public List<UserEntity> queryByUserNameAndPassWord(String userName, String passWord) {
        return userEntityMapper.queryByUserNameAndPassWord(userName, passWord);
    }

    public List<UserEntity> queryByEMailBoxAndPassWord(String eMailBox, String passWord) {
        return userEntityMapper.queryByEMailBoxAndPassWord(eMailBox, passWord);
    }
}


